package com.ikun.admin.modules.noauth.vo;

import com.ikun.common.validate.anno.NotNull;
import com.ikun.common.validate.anno.Regular;
import com.ikun.common.validate.constant.RegularPatternType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * @ClassName UpdateByCodeVo
 * @Description:
 * @CreateDate: 2024/4/19 18:03
 */
@Data
@ApiModel("根据验证码修改密码vo")
public class UpdateByCodeVo {


    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("验证码")
    @NotNull(message = "验证码不能空")
    private String code;

    @ApiModelProperty("密码")
    @Regular(message = "密码格式不对:密码长度6-16，必需要有数字大小写字母组成",pattern = RegularPatternType.PASSWORD)
    private String password;
}
